
//
//  NSURLSessionTask+JJ.m
//  jiajia
//
//  Created by rujia chen on 16/5/1.
//  Copyright © 2016年 sunrisin. All rights reserved.
//

#import "NSURLSessionTask+JJ.h"
#import "NSObject+JJ.h"

@implementation NSURLSessionTask (JJ)

+ (void)load {
    [self jj_swizzleInstanceMethod:@selector(cancel) with:@selector(jj_cancel)];
}

- (void)jj_cancel {
    [self jj_cancel];
    NSLog(@"request for [%@] has been canceled!", self.currentRequest.URL.standardizedURL);
}

@end
